package com.cqan.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import com.cqan.entity.pk.LongEntity;


@Entity
//表名与类名不相同时重新定义表名.
@Table(name = "TBL_REPORT")
//默认的缓存策略.
@SuppressWarnings("serial")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class Report extends LongEntity{

	
	private Date ctime;
	
	
	private String name;
	
	private Boolean state;
	
	@Column(name="CTIME")
	public Date getCtime() {
		return ctime;
	}

	@Column(name="NAME")
	public String getName() {
		return name;
	}

	@Column(name="STATE")
	public Boolean getState() {
		return state;
	}


	public void setCtime(Date ctime) {
		this.ctime = ctime;
	}

	
	public void setName(String name) {
		this.name = name;
	}
	
	public void setState(Boolean state) {
		this.state = state;
	}


	@Override
	public String toString() {
		
		return ToStringBuilder.reflectionToString(this);
	}
	
	
	
}
